<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <meta name="viewport"
        content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>安全运行及使用记录-frame</title>
    <link rel="stylesheet" type="text/css" href="../css/api.css" />
    <link rel="stylesheet" type="text/css" href="../css/style.css" />
    <link rel="stylesheet" type="text/css" href="../css/aui.2.0.css" />
    <style>
        body {
            background-color: #f2f2f2;
            height: auto;
        }

        [v-cloak] {
            display: none;
        }

        .equipment-wrapper {
            display: -webkit-flex;
            display: flex;
            justify-content: flex-start;
        }

        .equipment-wrapper>div:nth-child(1) {
            width: 0%;
        }

        .equipment-wrapper>div:nth-child(2) {
            width: 100%;
            border-radius: 10px;
            overflow: hidden;
        }

        .aui-list-item-label>input,
        .aui-list-item-label>span {
            margin-left: 5px;
        }

        .equipment-desc-wrapper {
            display: -webkit-flex;
            display: flex;
            justify-content: flex-start;
            padding: 10px 0;
        }

        .equipment-desc-wrapper>div:nth-child(1) {
            width: 20%;
            position: relative;
        }

        .equipment-desc-wrapper>div:nth-child(1)>span {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }

        .equipment-desc-wrapper>div:nth-child(2) {
            width: 80%;
            color: #888;
        }

        .aui-border-t:before,
        .aui-border-t::after,
        .aui-list:before,
        .aui-list:after {
            display: none;
        }

        #app {
            width: 95%;
            margin: 0 auto;
        }

        .aui-list .aui-list-item-label,
        .aui-list .aui-list-item-label-icon {
            width: 20%;
        }

        .textarea-container {
            width: 100%;
            margin: 0 auto;
        }

        .textarea-container>div:nth-child(1) {
            text-align: center;
            font-size: 17px;
        }

        .textarea-container>div:nth-child(2) {
            padding: 10px;
        }

        .aui-list-header {
            padding: 5px 0;
            text-align: center;
        }

        /* ------------------------------------------------------ */
        .list-title {
            padding: 0.8rem 0;
            text-align: left;
        }

        .list-title img {
            display: inline-block;
            height: 22px;
            width: 22px;
            vertical-align: middle;
            margin-right: 0.2rem;
        }

        .list-title span {
            color: #333;
            font-weight: 700;
        }

        .list-title-second {
            color: #666;
            font-size: 0.6rem;
            line-height: 1.2rem;
        }

        .borderclass {
            box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
            margin-bottom: 1rem;
            border-radius: 6px
        }
    </style>
</head>

<body>
    <main id="app">

    </main>
</body>

</html>

<script src="../script/api.js" charset="utf-8" type="text/javascript"></script>
<script src="../script/vue.js" charset="utf-8" type="text/javascript"></script>
<script src="../js/jquery.min.js" charset="utf-8" type="text/javascript"></script>
<script src="../js/ToConfigure.js" charset="utf-8" type="text/javascript"></script>
<script src="../script/aui-toast.js" charset="utf-8" type="text/javascript"></script>
<script src="../script/aui-dialog.js" charset="utf-8" type="text/javascript"></script>
<script src="../script/aui-tab.js" charset="utf-8" type="text/javascript"></script>
<script type="text/javascript">
    //调用vue中的过滤器，固定第一个参数为传入的要处理的数据data
    //Vue.filter('过滤器的名称',function(data){});
    //进行时间的格式化
    Vue.filter('dateFormat', function (dateStr, time) {
        //得到特定的时间
        var date = new Date(dateStr);
        var year = date.getFullYear();
        //ES6语法填充：var month = (date.getMonth()+1).toString().padStart(2, '0');
        var month = date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1;
        var day = date.getDate() < 10 ? '0' + date.getDate() : date.getDate();
        var hh = date.getHours() < 10 ? '0' + date.getHours() : date.getHours();
        var mm = date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes();
        var ss = date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds();

        //return `${year}-${month}-${day}`;

        if (time && time.toLowerCase() === 'yyyy-mm-dd') {
            return `${year}-${month}-${day}`;
        } else if (time && time.toLowerCase() === 'hh:mm:ss') {
            return `${hh}:${mm}:${ss}`;
        } else {
            return `${year}-${month}-${day} ${hh}:${mm}:${ss}`;
        }
    });
    var vm = null;
    apiready = function () {
        api.addEventListener({
            name: 'On_Site_Inspection'
        }, function (ret, err) {
            if (ret.value.state == 'no') {
                reloadPatient();
            }
        });
        vm = new Vue({
            el: '#app',
            data: {
                showAll: false,
                InspectionData: [], //巡检数据
                Url_IP: ""
            },
            created() {
                //定义toast提示框
                var toast = new auiToast();
                //获取所属医院IP地址
                var Url_IP = ToConfigure_IP("Gorgeous");
                //拼接html
                var HoInspectionRecord = "";
                //清空页面信息
                $("#app").html("");

                //查询病程信息
                var parameter = new Object();
                parameter.currPage = 1;
                //转换为json数据
                var jsonStr = JSON.stringify(parameter);
                $.ajax({
                    url: Url_IP + '/disinfectioninspection/hoinspectionrecord/getHoInspectionRecord',
                    type: 'post',
                    async: false,
                    contentType: "application/json",
                    dataType: "json",
                    data: jsonStr,
                    success: function (result) {
                        console.log(JSON.stringify(result));
                        /**
                         * 验证返回信息是否为空
                         */
                        if (result.success == true) {
                            /**
                             *  循环object
                             */
                            $.each(result.data.list, function (i, o) {
                                HoInspectionRecord += " <div class=' borderclass' onclick='patientinfoframe("+o.irId+")'>";
                                HoInspectionRecord += " <div class='aui-card-list-content-padded aui-border-b aui-border-t '>";
                                HoInspectionRecord += " <div class='aui-row aui-row-pwadded'>";
                                HoInspectionRecord += " <li class='aui-list-header list-title'><span><img src='../image/time2.png'> 日期:";
                                HoInspectionRecord += " <b>" + o.irTime + "</b> </span></li>";
                                HoInspectionRecord += "  <div class='aui-col-xs-4 list-title-second'>";
                                HoInspectionRecord += "  <div class='aui-list-item-inner'>";
                                HoInspectionRecord += " <div class='aui-list-item-label'> 加压系统:";
                                // 判断 
                                if (o.irPressurizSystem == 1) {

                                    HoInspectionRecord += "<span>✔</span>";
                                } else {
                                    HoInspectionRecord += "<span>✖</span>";
                                }
                                HoInspectionRecord += " </div></div></div>";

                                HoInspectionRecord += "  <div class='aui-col-xs-4 list-title-second'>";
                                HoInspectionRecord += "  <div class='aui-list-item-inner'>";
                                HoInspectionRecord += " <div class='aui-list-item-label'>减压系统:";
                                // 判断 
                                if (o.irDecompresSystem == 1) {

                                    HoInspectionRecord += "<span>✔</span>";
                                } else {
                                    HoInspectionRecord += "<span>✖</span>";
                                }
                                HoInspectionRecord += " </div></div></div>";

                                HoInspectionRecord += "  <div class='aui-col-xs-4 list-title-second'>";
                                HoInspectionRecord += "  <div class='aui-list-item-inner'>";
                                HoInspectionRecord += " <div class='aui-list-item-label'> 排氧系统:";
                                // 判断 
                                if (o.irOxygenSupply == 1) {

                                    HoInspectionRecord += "<span>✔</span>";
                                } else {
                                    HoInspectionRecord += "<span>✖</span>";
                                }
                                HoInspectionRecord += " </div></div></div>";

                                HoInspectionRecord += "  <div class='aui-col-xs-4 list-title-second'>";
                                HoInspectionRecord += "  <div class='aui-list-item-inner'>";
                                HoInspectionRecord += " <div class='aui-list-item-label'> 各阀门按键归零:";
                                // 判断 
                                if (o.irZero == 1) {
                                    HoInspectionRecord += "<span>✔</span>";
                                } else {
                                    HoInspectionRecord += "<span>✖</span>";
                                }
                                HoInspectionRecord += " </div></div></div>";

                                HoInspectionRecord += "  <div class='aui-col-xs-4 list-title-second'>";
                                HoInspectionRecord += "  <div class='aui-list-item-inner'>";
                                HoInspectionRecord += " <div class='aui-list-item-label'> 对讲系统:";
                                // 判断 
                                if (o.irIntercomSystem == 1) {
                                    HoInspectionRecord += "<span>✔</span>";
                                } else {
                                    HoInspectionRecord += "<span>✖</span>";
                                }
                                HoInspectionRecord += " </div></div></div>";
                                HoInspectionRecord += "  <div class='aui-col-xs-4 list-title-second'>";
                                HoInspectionRecord += "  <div class='aui-list-item-inner'>";
                                HoInspectionRecord += " <div class='aui-list-item-label'>应急呼叫:";
                                // 判断 
                                if (o.irEmergencyCall == 1) {
                                    HoInspectionRecord += "<span>✔</span>";
                                } else {
                                    HoInspectionRecord += "<span>✖</span>";
                                }
                                HoInspectionRecord += " </div></div></div>";

                                HoInspectionRecord += "  <div class='aui-col-xs-4 list-title-second'>";
                                HoInspectionRecord += "  <div class='aui-list-item-inner'>";
                                HoInspectionRecord += " <div class='aui-list-item-label'> 舱内灯光:";
                                // 判断 
                                if (o.irCabinLighting == 1) {
                                    HoInspectionRecord += "<span>✔</span>";
                                } else {
                                    HoInspectionRecord += "<span>✖</span>";
                                }
                                HoInspectionRecord += " </div></div></div>";

                                HoInspectionRecord += "  <div class='aui-col-xs-4 list-title-second'>";
                                HoInspectionRecord += "  <div class='aui-list-item-inner'>";
                                HoInspectionRecord += " <div class='aui-list-item-label'>空调:";
                                // 判断 
                                if (o.irAirConditioner == 1) {
                                    HoInspectionRecord += "<span>✔</span>";
                                } else {
                                    HoInspectionRecord += "<span>✖</span>";
                                }
                                HoInspectionRecord += " </div></div></div>";

                                HoInspectionRecord += "  <div class='aui-col-xs-4 list-title-second'>";
                                HoInspectionRecord += "  <div class='aui-list-item-inner'>";
                                HoInspectionRecord += " <div class='aui-list-item-label'> 递物筒:";
                                // 判断 
                                if (o.irDeliveryBox == 1) {
                                    HoInspectionRecord += "<span>✔</span>";
                                } else {
                                    HoInspectionRecord += "<span>✖</span>";
                                }
                                HoInspectionRecord += " </div></div></div>";

                                HoInspectionRecord += "  <div class='aui-col-xs-4 list-title-second'>";
                                HoInspectionRecord += "  <div class='aui-list-item-inner'>";
                                HoInspectionRecord += " <div class='aui-list-item-label'> 紧急泄压器:";
                                // 判断 
                                if (o.irReliefValve == 1) {
                                    HoInspectionRecord += "<span>✔</span>";
                                } else {
                                    HoInspectionRecord += "<span>✖</span>";
                                }
                                HoInspectionRecord += " </div></div></div>";

                                HoInspectionRecord += "  <div class='aui-col-xs-4 list-title-second'>";
                                HoInspectionRecord += "  <div class='aui-list-item-inner'>";
                                HoInspectionRecord += " <div class='aui-list-item-label'> 真空泵:";
                                // 判断 
                                if (o.irVacuumPump == 1) {
                                    HoInspectionRecord += "<span>✔</span>";
                                } else {
                                    HoInspectionRecord += "<span>✖</span>";
                                }
                                HoInspectionRecord += " </div></div></div>";
                                HoInspectionRecord += "  <div class='aui-col-xs-4 list-title-second'>";
                                HoInspectionRecord += "  <div class='aui-list-item-inner'>";
                                HoInspectionRecord += " <div class='aui-list-item-label'>关闭舱门:";
                                // 判断 
                                if (o.irCloseHatch == 1) {
                                    HoInspectionRecord += "<span>✔</span>";
                                } else {
                                    HoInspectionRecord += "<span>✖</span>";
                                }
                                HoInspectionRecord += " </div></div></div>";


                                /**
                                 * 文本内容
                                 */
                                HoInspectionRecord += " <div>";


                                HoInspectionRecord += "  <div class='aui-col-xs-4 list-title-second'>";
                                HoInspectionRecord += "  <div class='aui-list-item-inner'>";
                                HoInspectionRecord += " <div class='aui-list-item-label'>总电源：";
                                // 判断 
                                if (o.irPowerSupply != null && o.irPowerSupply != "") {
                                    HoInspectionRecord += "<span>" + o.irPowerSupply + "</span>";
                                } else {
                                    HoInspectionRecord += "<span>暂无信息</span>";
                                }
                                HoInspectionRecord += " </div></div></div>";

                                HoInspectionRecord += "  <div class='aui-col-xs-4 list-title-second'>";
                                HoInspectionRecord += "  <div class='aui-list-item-inner'>";
                                HoInspectionRecord += " <div class='aui-list-item-label'>签名：";
                                // 判断 
                                if (o.irAutograph != null && o.irAutograph != "") {
                                    HoInspectionRecord += "<span>" + o.irAutograph + "</span>";
                                } else {
                                    HoInspectionRecord += "<span>暂无信息</span>";
                                }
                                HoInspectionRecord += " </div></div></div>";

                                HoInspectionRecord += "  <div class='aui-col-xs-4 list-title-second'>";
                                HoInspectionRecord += "  <div class='aui-list-item-inner'>";
                                HoInspectionRecord += " <div class='aui-list-item-label'>供气压力：";
                                // 判断 
                                if (o.irSupplyPressure != null && o.irSupplyPressure != "") {

                                    HoInspectionRecord += "<span>" + o.irSupplyPressure + "MPa</span>";
                                } else {
                                    HoInspectionRecord += "<span>暂无信息</span>";
                                }
                                HoInspectionRecord += " </div></div></div>";

                                HoInspectionRecord += "  <div class='aui-col-xs-4 list-title-second'>";
                                HoInspectionRecord += "  <div class='aui-list-item-inner'>";
                                HoInspectionRecord += " <div class='aui-list-item-label'>供氧压力：";
                                // 判断 
                                if (o.irOxygenPressure != null && o.irOxygenPressure != "") {

                                    HoInspectionRecord += "<span>" + o.irOxygenPressure + "MPa</span>";
                                } else {
                                    HoInspectionRecord += "<span>暂无信息</span>";
                                }
                                HoInspectionRecord += " </div></div></div>";

                                HoInspectionRecord += "  <div class='aui-col-xs-4 list-title-second'>";
                                HoInspectionRecord += "  <div class='aui-list-item-inner'>";
                                HoInspectionRecord += " <div class='aui-list-item-label'>氧浓度：";
                                // 判断 
                                if (o.irSampleDetector != null && o.irSampleDetector != "") {

                                    HoInspectionRecord += "<span>" + o.irSampleDetector + "</span>";
                                } else {
                                    HoInspectionRecord += "<span>暂无信息</span>";
                                }
                                HoInspectionRecord += " </div></div></div>";

                                HoInspectionRecord += "  <div class='aui-col-xs-4 list-title-second'>";
                                HoInspectionRecord += "  <div class='aui-list-item-inner'>";
                                HoInspectionRecord += " <div class='aui-list-item-label'>舱内温度：";
                                // 判断 
                                if (o.irCabinTemper != null && o.irCabinTemper != "") {

                                    HoInspectionRecord += "<span>" + o.irCabinTemper + "°C</span>";
                                } else {
                                    HoInspectionRecord += "<span>暂无信息</span>";
                                }
                                HoInspectionRecord += " </div></div></div>";

                                HoInspectionRecord += "  <div class='aui-col-xs-4 list-title-second'>";
                                HoInspectionRecord += "  <div class='aui-list-item-inner'>";
                                HoInspectionRecord += " <div class='aui-list-item-label'>备注：";
                                // 判断 
                                if (o.irRemarks != null && o.irRemarks != "") {

                                    HoInspectionRecord += "<span>" + o.irRemarks + "</span>";
                                } else {
                                    HoInspectionRecord += "<span>暂无信息</span>";
                                }

                                HoInspectionRecord += " </div></div></div>";




                                HoInspectionRecord += " </div></div>";


                                HoInspectionRecord += "<div class='aui-card-list-content-padded aui-border-b aui-border-t'>";
                                HoInspectionRecord += "<div class='aui-row aui-row-padded'>";
                                HoInspectionRecord += "<li class='aui-list-header list-title'><span><img src='../image/jixie.png'>空气压缩机 </span></li>";
                                HoInspectionRecord += "<div class='aui-col-xs-4' style='text-align: center'>";
                                HoInspectionRecord += " <div class='aui-list-item-inner'>";
                                    if (o.irStartupTime != null && o.irStartupTime != "") {
                                HoInspectionRecord += "<div class='aui-list-item-label'>开机：" + o.irStartupTime + "</div></div>";
                                } else {
                                    HoInspectionRecord += "<div class='aui-list-item-label'>开机</div></div>";
                                }
                                HoInspectionRecord += "<div class='aui-row aui-row-padded'>";
                                HoInspectionRecord += "<div class='aui-col-xs-6 list-title-second'>";
                                HoInspectionRecord += "<div class='aui-list-item-inner'>";
                                HoInspectionRecord += "<div class='aui-list-item-label'> 温度 </div></div>";
                                HoInspectionRecord += "</div>";
                                HoInspectionRecord += "<div class='aui-col-xs-6 list-title-second'>";
                                HoInspectionRecord += "<div class='aui-list-item-inner'>";
                                HoInspectionRecord += " <div class='aui-list-item-label'> 压力</div>";
                                HoInspectionRecord += "</div>";
                                HoInspectionRecord += "</div>";
                                HoInspectionRecord += "</div>";
                                HoInspectionRecord += "<div class='aui-row aui-row-padded'>";
                                HoInspectionRecord += "<div class='aui-col-xs-6 list-title-second'>";
                                HoInspectionRecord += "<div class='aui-list-item-inner'>";
                                if (o.irStartTemp != null && o.irStartTemp != "") {
                                    HoInspectionRecord += "<div class='aui-list-item-label'> " + o.irStartTemp + "°C </div>";
                                } else {
                                    HoInspectionRecord += "<div class='aui-list-item-label'>暂无</div>";
                                }
                                
                                HoInspectionRecord += "</div>";
                                HoInspectionRecord += "</div>";
                                HoInspectionRecord += "<div class='aui-col-xs-6 list-title-second'>";
                                HoInspectionRecord += "<div class='aui-list-item-inner'>";
                                if (o.irStartPressure != null && o.irStartPressure != "") {
                                    HoInspectionRecord += "<div class='aui-list-item-label'> " + o.irStartPressure + "MPa </div>";
                                } else {
                                    HoInspectionRecord += "<div class='aui-list-item-label'>暂无</div>";
                                }
                                HoInspectionRecord += "</div>";
                                HoInspectionRecord += "</div>";
                                HoInspectionRecord += "</div>";
                                HoInspectionRecord += "</div>";
                                HoInspectionRecord += "<div class='aui-col-xs-4' style='text-align: center'>";
                                HoInspectionRecord += "<div class='aui-list-item-inner'>";
                                if (o.irShutdownTime != null && o.irShutdownTime != "") {
                                    HoInspectionRecord += "<div class='aui-list-item-label'>关机：" + o.irShutdownTime + "</div>";
                                } else {
                                    HoInspectionRecord += "<div class='aui-list-item-label'>关机</div>";
                                }
                                HoInspectionRecord += "</div>";
                                HoInspectionRecord += "<div class='aui-row aui-row-padded'>";
                                HoInspectionRecord += "<div class='aui-col-xs-6 list-title-second'>";
                                HoInspectionRecord += "<div class='aui-list-item-inner'>";
                                HoInspectionRecord += "<div class='aui-list-item-label'>温度</div>";
                                HoInspectionRecord += "</div>";
                                HoInspectionRecord += "</div>";
                                HoInspectionRecord += "<div class='aui-col-xs-6 list-title-second'>";
                                HoInspectionRecord += "<div class='aui-list-item-inner'>";
                                HoInspectionRecord += "<div class='aui-list-item-label'> 压力 </div>";
                                HoInspectionRecord += "</div>";
                                HoInspectionRecord += "</div>";
                                HoInspectionRecord += "</div>";
                                HoInspectionRecord += "<div class='aui-row aui-row-padded'>";
                                HoInspectionRecord += "<div class='aui-col-xs-6 list-title-second'>";
                                HoInspectionRecord += "<div class='aui-list-item-inner'>";
                                if (o.irShutTemp != null && o.irShutTemp != "") {
                                    HoInspectionRecord += "<div class='aui-list-item-label'> " + o.irShutTemp + "°C </div>";

                                } else {
                                    HoInspectionRecord += "<div class='aui-list-item-label'>暂无</div>";

                                }
                                HoInspectionRecord += "</div>";
                                HoInspectionRecord += "</div>";
                                HoInspectionRecord += "<div class='aui-col-xs-6 list-title-second'>";
                                HoInspectionRecord += "<div class='aui-list-item-inner'>";
                                if (o.irShutPressure != null && o.irShutPressure != "") {
                                    HoInspectionRecord += "<div class='aui-list-item-label'> " + o.irShutPressure + "MPa </div>";

                                } else {
                                    HoInspectionRecord += "<div class='aui-list-item-label'>暂无</div>";

                                }
                                HoInspectionRecord += "</div>";
                                HoInspectionRecord += "</div>";
                                HoInspectionRecord += "</div>";
                                HoInspectionRecord += "</div>";
                                HoInspectionRecord += "<div class='aui-col-xs-4' style='text-align: center'>";
                                HoInspectionRecord += "<div class='aui-list-item-inner'>";
                                HoInspectionRecord += "<div class='aui-list-item-label'>运行时间累计</div>";
                                HoInspectionRecord += "</div>";
                                HoInspectionRecord += "<div class='aui-row aui-row-padded'>";
                                HoInspectionRecord += "<div class='aui-col-xs-12 list-title-second'>";
                                HoInspectionRecord += "<div class='aui-list-item-inner'>";
                                HoInspectionRecord += "<div class='aui-list-item-label'> 运行时间累计 </div>";
                                HoInspectionRecord += "</div>";
                                HoInspectionRecord += "</div>";
                                HoInspectionRecord += "<div class='aui-col-xs-12'>";
                                HoInspectionRecord += "<div class='aui-list-item-inner'>";
                                if (o.irCumulativeTime != null && o.irCumulativeTime != "") {
                                    HoInspectionRecord += "<div class='aui-list-item-label'> " + o.irCumulativeTime + "min </div>";
                                } else {
                                    HoInspectionRecord += "<div class='aui-list-item-label'>暂无</div>";
                                }
                                HoInspectionRecord += "</div></div></div></div></div></div>";
                                HoInspectionRecord += "<div class='aui-card-list-content-padded aui-border-b aui-border-t'>";
                                HoInspectionRecord += "<div class='aui-row aui-row-padded'>";
                                HoInspectionRecord += "<li class='aui-list-header list-title'><span><img src='../image/weixiu.png'>舱次选择 </span></li>";
                                HoInspectionRecord += "<div class='aui-col-xs-12'>";
                                HoInspectionRecord += "<div class='aui-list-item-inner'>";
                                if (o.irRepair != null && o.irRepair != "") {
                                    HoInspectionRecord += "<div class='aui-list-item-label'> " + o.irRepair + " </div>";

                                } else {
                                    HoInspectionRecord += "<div class='aui-list-item-label'>暂无</div>";

                                }
                                HoInspectionRecord += "</div></div></div></div></div></div></div></div>";

                            })
                            /**
                             * 页面进行赋值
                             */
                            $("#app").html(HoInspectionRecord);
                        } else {
                            /**
                             *  弹窗提示 暂无相关信息
                             */
                            toast.fail({
                                title: "加载失败",
                                duration: 2000
                            });
                        }
                    },
                    error: function (result) {
                        /**
                         *  提示错误信息
                         */
                        toast.fail({
                            title: "加载失败",
                            duration: 2000
                        });
                    }
                })
            }
        });
    }

    /**
     *  
     * 安全运行及使用记录修改
     * */
     function patientinfoframe(irId) {
        api.openWin({
            name: 'equipment-recording-update-header',
            url: './equipment-recording-update-header.html',
            pageParam: {
              name: 'equipment-recording-update-header',
              irId:irId,
              userName: api.pageParam["userName"]
          },
        });
    }

    function reloadPatient() {
        window.location.reload();
    }
</script>